my $numberOfArg = $#ARGV + 1;
my $host = $ARGV[0];
my $opt = "-O";

&printHelp if $numberOfArg == 0;

$cmd =  sprintf("sudo nmap $host $opt");
system($cmd);

sub printHelp {
    print "syntax : cmd target\n";
    exit;
}
